﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
	xmlns:local="clr-namespace:TheGameClient"
	mc:Ignorable="d"
	x:Class="TheGameClient.FeatureMarketControl"
	d:DesignWidth="759" d:DesignHeight="554">

    <Grid x:Name="LayoutRoot">
    	<sdk:TabControl TabStripPlacement="Left">
    		<sdk:TabItem x:Name="tabHardware" IsSelected="True" Header="Hardware" Style="{StaticResource DefaultTabItemStyle}" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" MouseLeftButtonUp="TabHardwareMouseLeftButtonUp">
    			<Grid>
    				<Grid.RowDefinitions>
    					<RowDefinition/>
    				</Grid.RowDefinitions>
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition/>
    					<ColumnDefinition Width="10"/>
    					<ColumnDefinition Width="150"/>
    				</Grid.ColumnDefinitions>
    				<sdk:DataGrid x:Name="dgrdHardware" Background="#02FFFFFF" AutoGenerateColumns="False" AreRowDetailsFrozen="True" RowBackground="#33EAEFF4" Foreground="White" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" SelectionChanged="DgrdHardwareSelectionChanged">
    					<sdk:DataGrid.RowGroupHeaderStyles>
    						<Style TargetType="sdk:DataGridRowGroupHeader">
    							<Setter Property="Foreground" Value="Black"/>
								<Setter Property="Background" Value="{StaticResource WindowButtonIconGradient}"/>
							</Style>
    					</sdk:DataGrid.RowGroupHeaderStyles>
    					<sdk:DataGrid.Columns>
    						<sdk:DataGridTextColumn Binding="{Binding Name}" CanUserSort="True" Header="Name" IsReadOnly="True" Width="*"/>
    						<sdk:DataGridTextColumn Binding="{Binding Modifier}" CanUserSort="True" Header="Speed / Capacity" IsReadOnly="True" Width="SizeToHeader"/>
    						<sdk:DataGridTextColumn Binding="{Binding Price}" Header="Price" IsReadOnly="True" Width="100"/>
    					</sdk:DataGrid.Columns>
    				</sdk:DataGrid>
    				<Grid Grid.Column="3" VerticalAlignment="Top">
    					<StackPanel>
    						<TextBlock TextWrapping="Wrap" Text="Available credits:" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8" Foreground="White"/>
    						<TextBlock x:Name="lblTotalCredits2" TextWrapping="Wrap" Text="999999999" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8" Foreground="White"/>
    						<TextBlock x:Name="txtDescription" TextWrapping="Wrap" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" Margin="0,10,0,0"/>
    					</StackPanel>
    				</Grid>
    				<Button x:Name="btnBuyHardware" VerticalAlignment="Bottom" Content="Buy item" Grid.Column="2" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" Margin="2,0,-2,0" Click="BtnBuyHardwareClick"/>
    			</Grid>
    		</sdk:TabItem>
    		<sdk:TabItem x:Name="tabSoftware" Header="Software" IsSelected="False" Style="{StaticResource DefaultTabItemStyle}" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" MouseLeftButtonUp="TabSoftwareMouseLeftButtonUp">
    			<Grid>
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition/>
    					<ColumnDefinition Width="10"/>
    					<ColumnDefinition Width="150"/>
    				</Grid.ColumnDefinitions>
    				<sdk:DataGrid x:Name="dgrdSoftware" Background="#02FFFFFF" AutoGenerateColumns="False" AreRowDetailsFrozen="True" Margin="0,0,-2,0" RowBackground="#33EAEFF4" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White">
    					<sdk:DataGrid.Columns>
    						<sdk:DataGridTextColumn Binding="{Binding Name}" CanUserSort="True" Header="Name" IsReadOnly="True" Width="*"/>
    						<sdk:DataGridTextColumn Binding="{Binding Modifier}" CanUserSort="True" Header="Version" IsReadOnly="True" Width="SizeToHeader"/>
    						<sdk:DataGridTextColumn Binding="{Binding Size}" CanUserSort="True" Header="Size" IsReadOnly="True" Width="100"/>
    						<sdk:DataGridTextColumn Binding="{Binding Price}" Header="Price" IsReadOnly="True" Width="100"/>
    					</sdk:DataGrid.Columns>
    				</sdk:DataGrid>
    				<Button x:Name="btnBuySoftware" VerticalAlignment="Bottom" Content="Buy item" Grid.Column="2" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" Click="BtnBuySoftwareClick"/>
    				<StackPanel Grid.Column="2">
    					<TextBlock TextWrapping="Wrap" Text="Available credits:" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8" Foreground="White"/>
    					<TextBlock x:Name="lblTotalCredits" TextWrapping="Wrap" Text="999999999" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8" Foreground="White"/>
    				</StackPanel>
    			</Grid>
    		</sdk:TabItem>
    	</sdk:TabControl>
    </Grid>
</UserControl>